//
//  CWMineController.swift
//  CWWeibo06
//
//  Created by ycw on 2017/7/21.
//  Copyright © 2017年 xiaowei. All rights reserved.
//

import UIKit

class CWMineController: CWVisibleController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if isLogin {
            navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(clickPushButton))
            
        }
        if !isLogin {
            
            visibleView?.updateVisibleViewInfo(labelText: "登录后，你的微博、相册、个人资料都会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
            
        }

        
    }

    
    @objc private func clickPushButton() {
        
        let testVC: CWTestController = CWTestController()
        
        navigationController?.pushViewController(testVC, animated: true)
        
        
    }
    

}
